function array() {
    let arr1 = [1, 2, 3];
    let arr2 = [4, 5, 6];
    let mergedArr = [...arr1, ...arr2];

    console.log(mergedArr);

    let arr = [
        { id: 1, name: 'John' },
        { id: 2, name: 'Alice' },
        { id: 3, name: 'Bob' }
    ];

    let result = arr.filter(item => item.name === 'Alice');

    console.log(result);



}


array()
